package com.syh.jn.scm.domain.supplier.event;

import com.syh.core.ddd.domain.DomainEvent;
import com.syh.jn.scm.domain.supplier.entity.base.upstream.Upstream;

public class UpstreamEvent extends DomainEvent<Upstream> {

  public static final String UPSTREAM_CREATED = "upstreamCreatedEvent";
  public static UpstreamEvent buildUpstreamCreatedEvent(Object[] values){
    UpstreamEvent upstreamEvent = new UpstreamEvent();
    upstreamEvent.eventName = UPSTREAM_CREATED;
    upstreamEvent.values = values;
    return upstreamEvent;
  }

  public static final String UPSTREAM_DELETED = "upstreamDeletedEvent";
  public static UpstreamEvent buildUpstreamDeletedEvent(Object[] values){
    UpstreamEvent upstreamEvent = new UpstreamEvent();
    upstreamEvent.eventName = UPSTREAM_DELETED;
    upstreamEvent.values = values;
    return upstreamEvent;
  }
}
